package cn.wolfcode.trip.core.domain;

import lombok.Getter;
import lombok.Setter;

/**
 * 注册用户
 */
@Setter
@Getter
public class User extends BaseDomain{

    public static final int GENDER_SECRET = -1;//保密
    public static final int GENDER_MAN = 1;//男
    public static final int GENDER_WOMAN = 0;//女

    private String email; // 邮箱

    private String nickName; // 昵称

    private String password; // 密码

    private String place; // 地区

    private String headImgUrl;  // 头像

    private Integer gender = GENDER_SECRET; // 性别

    private String coverImgUrl;  // 封面

    private String sign = "无个性,何来签名";  // 签名

    public String getGenderName(){
        String temp = "保密";
        if(gender == GENDER_MAN){
            temp = "男";
        }else if(gender == GENDER_WOMAN){
            temp = "女";
        }
        return temp;
    }
}